
             <table class="table table-hover">
                            <thead>  
                              <tr class="success">  
                                <th>#</th>  
                                <th><span class="glyphicon glyphicon-user ">&nbsp;</span>Họ Và Tên</th>  
                                <th><span class="glyphicon glyphicon-book ">&nbsp;</span>Khóa Học</th>  
                                <th><span class="glyphicon glyphicon-earphone ">&nbsp;</span>Số Điện THoại</th>
                                <th><span class="glyphicon glyphicon-comment ">&nbsp;</span>Nội Dung</th>
                                <th><span class="glyphicon glyphicon-star">&nbsp;</span>Trạng thái</th>
                              </tr>  
                            </thead>  
                            <tbody>  
                              <?php 
                              $i=1;
                              $currentPage =$this->pages->getCurrentPageNumber();
                              $itemPerPage =$this->pages->getItemCountPerPage();
                              foreach ($this->pages as $page){
                              	$index= $i+($currentPage-1)*$itemPerPage;
									echo "<tr>";
		                           echo  "<td>".$index."</td>";
		                           echo   "<td>".$page["name"]."</td>";
		                           echo  "<td>".$page["title"]."</td>";
		                           echo "<td>".$page["phone"]."</td>";
		                           echo  "<td>".$page["comment"]."</td>";
		                           if($page["status"]=="0"){
		                           	 echo "<td><a href='".HOST_PATH."admin/control/view/id/".$page["id"]."' class='btn btn-danger btn-sm' role='button'>Mới</a></td>";
		                           }else{
		                           	echo "<td><a href='".HOST_PATH."admin/control/view/id/".$page["id"]."' class='btn btn-info btn-sm' role='button'>Cũ</a></td>";
		                           }
		                           echo "</tr>";
		                           $i++;
		                              
		                        }
                              ?>
                        
                            </tbody> 
               </table>
                <?php

      				 echo $this->paginationControl($this->pages, 'Sliding' , 'pagination.phtml');
     
				?>
              